﻿<%@ Assembly Name="Havivi.PropertyBagSettings, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1c795c47a09f6e8f" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PropertyBag.aspx.cs" Inherits="Havivi.PropertyBagSettings.PropertyBag"
    DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="Microsoft.SharePoint.Administration" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Reflection" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <script type="text/javascript">

        //Dialog opening 
        function OpenDialog(url) {
            var options = SP.UI.$create_DialogOptions();
            options.url = "/_layouts/pbs2010/" + url;
            options.width = 360;
            options.height = 260;
            options.dialogReturnValueCallback = Function.createDelegate(null, CloseCallback);
            SP.UI.ModalDialog.showModalDialog(options);
        }

        var messageId;

        // Dialog callback 
        function CloseCallback(result, target) {
            if (result === SP.UI.DialogResult.OK) {
                //location.reload(true);
            }
            if (result === SP.UI.DialogResult.cancel) {
                // do nothing
            }
        }

    </script>
    <hr style="height: 1px; width: 100%; color: Gray" />
    <div>
        <table>
            <tr>
                <td class="ms-descriptiontext ms-inputformdescription" style="width: 100px">
                    Site:
                </td>
                <td>
                    <span cssclass="ms-descriptiontext ms-inputformdescription">
                        <%=lblSite%></span>
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="View Property Bag" class="ms-ButtonHeightWidth"
                        Style="width: 120px" OnClick="btnSite_Click" />
                </td>
            </tr>
            <tr>
                <td class="ms-descriptiontext ms-inputformdescription" style="width: 100px">
                    List:
                </td>
                <td>
                    <asp:DropDownList class="ms-long" ID="ddlFolder" runat="server">
                        <asp:ListItem Text="No selection" Value="No selection"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnFolder" runat="server" Text="View Property Bag" class="ms-ButtonHeightWidth"
                        Style="width: 120px" OnClick="btnFolder_Click" />
                </td>
            </tr>
        </table>
    </div>
    <hr style="height: 1px; width: 100%; color: Gray" />
    <asp:Label ID="Header" runat="server" Text=""></asp:Label>
    <asp:Label ID="PropertyTable" runat="server" Text=""></asp:Label>
    <hr style="height: 1px; width: 100%; color: Gray" />
    <div style="width: 100%; text-align: right">
        <small>Property Bag Settings by <a href="http://havivi.blogspot.com" target="_blank">
            Alon Havivi</a></small></div>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Property Bag Settings
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    Property Bag Settings
</asp:Content>
